<div id="divMain"><?php foreach($sanpham as $item){ ?><div id='divSanPham'><span class='spanTen'><?=$item->ten?></span><span class='spanImg'><img src="<?php echo base_url('upload/sanpham/'.$item->id.'/'.$item->hinh1);?>" width='230px' height='203px'/></span><span class='spanNoiDung'><?=$item->noidung?></span> <span class='spanGia'>Gia:<?=$item->gia?><a href="<?=base_url('sanpham/chitietsanpham/'.$item->tenUrl.'.html')?>"><img src="<?php echo base_url('image/src/btn_details.gif')?>" width='102px' height='35px' /></a></span></div><!-- End #divMain --><?php } ?><div id='divPTSP'><?=$phantrang?></div>